import request from '@/utils/request'

// 查询联动授权配置列表
export function listAuthorize(query) {
  return request({
    url: '/linkage/authorize/list',
    method: 'get',
    params: query
  })
}

// 查询联动授权配置详细
export function getAuthorize(id) {
  return request({
    url: '/linkage/authorize/' + id,
    method: 'get'
  })
}

// 新增联动授权配置
export function addAuthorize(data) {
  return request({
    url: '/linkage/authorize',
    method: 'post',
    data: data
  })
}

// 修改联动授权配置
export function updateAuthorize(data) {
  return request({
    url: '/linkage/authorize',
    method: 'put',
    data: data
  })
}

// 删除联动授权配置
export function delAuthorize(id) {
  return request({
    url: '/linkage/authorize/' + id,
    method: 'delete'
  })
}
